import {Module} from '@nestjs/common';

import {RouterModule} from '@nestjs/core';

import {EmailModule} from './email/email.module';
import {StorageModule} from './storage/storage.module';
import {UploadModule} from './upload/upload.module';
import { ExcelModule } from './excel/excel.module';

const modules = [StorageModule, EmailModule, UploadModule, ExcelModule];

@Module({
  imports: [
    ...modules,
    RouterModule.register([
      {
        path: 'cms/tools',
        module: ToolsModule,
        children: [...modules],
      },
    ]),
  ],
  exports: [...modules],
})
export class ToolsModule {}
